package org.jeecg.modules.wms.sys.vo;

import java.util.List;
import org.jeecg.modules.wms.sys.entity.SysSendTarget;
import org.jeecg.modules.wms.sys.entity.SysSendTargetRole;
import org.jeecg.modules.wms.sys.entity.SysSendTargetUser;
import org.jeecg.modules.wms.sys.entity.SysSendTargetLabel;
import org.jeecg.modules.wms.sys.entity.SysSendDing;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 消息模版-发送配置
 * @Author: jeecg-boot
 * @Date:   2023-09-27
 * @Version: V1.0
 */
@Data
@ApiModel(value="sys_send_targetPage对象", description="消息模版-发送配置")
public class SysSendTargetPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**名称*/
	@Excel(name = "名称", width = 15)
	@ApiModelProperty(value = "名称")
    private String name;
	/**编码*/
	@Excel(name = "编码", width = 15)
	@ApiModelProperty(value = "编码")
    private String code;
	/**发送方式*/
	@Excel(name = "发送方式", width = 15, dicCode = "sys_send_target_method")
    @Dict(dicCode = "sys_send_target_method")
	@ApiModelProperty(value = "发送方式")
    private String method;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
	@ApiModelProperty(value = "逻辑删除")
    private Integer delFlag;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
	@ApiModelProperty(value = "租户id")
    private String tenantId;

	@ExcelCollection(name="预警消息模版-按角色发送")
	@ApiModelProperty(value = "预警消息模版-按角色发送")
	private List<SysSendTargetRole> sysSendTargetRoleList;
	@ExcelCollection(name="预警消息模版-发送用户")
	@ApiModelProperty(value = "预警消息模版-发送用户")
	private List<SysSendTargetUser> sysSendTargetUserList;
	@ExcelCollection(name="标签匹配规则")
	@ApiModelProperty(value = "标签匹配规则")
	private List<SysSendTargetLabel> sysSendTargetLabelList;
	@ExcelCollection(name="钉钉配置")
	@ApiModelProperty(value = "钉钉配置")
	private List<SysSendDing> sysSendDingList;

}
